package com.pt25.service.sys.repository.mysql.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pt25.base.dep.db.po.BasePo;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(
        callSuper = true
)
@TableName("sys_config_log")
public class ConfigLogPo extends BasePo implements Serializable {
    @TableField(
            exist = false
    )
    public static final String key = "sys_config_log";
    /**
     * 配置数据表id(aim_config_value.id)
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("config_value_id")
    private Long configValueId;
    /**
     * redis中的key
     */
    @TableField("data_key")
    private String dataKey;

    /**
     * 针对key的数据类型，如HASH，该字段有值
     */
    @TableField("value_key")
    private String valueKey;

    /**
     * key的value
     */
    @TableField("value_content")
    private String valueContent;

    /**
     * 操作类型(delete,update)
     */
    @TableField("manipulate_type")
    private String manipulateType;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private String tenantId;
}
